package com.doform.android.xianggucheng.bean.request_bean;

import com.doform.android.xianggucheng.help.AppHelp;
import com.google.gson.Gson;

/**
 * 作者 Y_MS
 * Created by ${APEN} on 2017-08-03.
 * GitHub：https://github.com/cxydxpx
 */

public class ReqUpdateClientBean {

    /**
     * _savetype 	是 	string 	操作类型：新增：add ； 编辑：update
     id 	否 	string 	客户单位ID
     name 	是 	string 	客户单位
     shortname 	是 	string 	客户简称
     starid 	是 	string 	单位星级ID
     addr 	是 	string 	送货地址
     bizclsid 	否 	string 	联系电话
     bizclsname 	否 	string 	联系电话
     bizclsnickname 	否 	string 	联系电话
     lnkname 	否 	string 	联系人
     mobile 	否 	string 	联系电话
     debug 	是 	string 	开启：true
     */
    private String _savetype = "update";
    private boolean debug = AppHelp.getInstance().Debug;
    private String guid;
    private String name;
    private String shortname;
    private String starid;
    private String addr;
    private String bizclsid;
    private String bizclsname;
    private String lnkname;
    private String mobile;
    private String id;

    public ReqUpdateClientBean(String mName, String mPerson, String mPhone, String mDetailAddress,
                               String mCategoryId, String mCategoryName, String mStarId, String id,String guid) {
        this.guid = guid;
        this.id = id;
        this.name = mName;
        this.lnkname = mPerson;
        this.mobile = mPhone;
        this.addr = mDetailAddress;
        this.bizclsid = mCategoryId;
        this.bizclsname = mCategoryName;
        this.starid = mStarId;
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
